import React, { PureComponent } from 'react'
import { message, Upload } from 'antd'
import { connect } from '@umijs/max'
import UserModel from './userModel'
import { SUAN_PAN } from '@/utils/https'
import styles from './index.less'

@connect(({ global }) => ({ ...global }))
class User extends PureComponent {
  constructor(props) {
    super(props)
    this.state = {
      show: false,
    }
  }

  render() {
    const { show } = this.state
    const { user } = this.props
    return (
      <div className={styles.user_page}>
        <div className={styles.user_information}>
          <div className={styles.user_information_title}>个人信息</div>
          <UserModel users={user || {}} />
        </div>
      </div>
    )
  }
}

export default User
